package com.party.core.model.mall;

import com.party.core.model.BaseModel;

import java.util.Date;

/**
 * 商城商品
 * Created by wei.li
 *
 * @date 2017/8/15 0015
 * @time 15:16
 */
public class MallGoods extends BaseModel {

    public static Integer STATUS_UP = 1; // 上架
    public static Integer STATUS_DOWN = 2; // 下架
    public static Integer STATUS_SELL_OUT = 3; // 售罄


    // 商品名称
    private String name;

    // 商品图片（取第一张）
    private String pic;

    // 品牌编号
    private String brandId;

    // 销售量
    private Long salesNum;

    // 状态
    private Integer status;

    // 会员编号
    private String memberId;

    // 原价 划线价
    private String originalPrice;

    // 成本价
    private String costPrice;

    // 批发价
    private String tradePrice;

    // 上架开始时间
    private Date openStartTime;

    // 上架结束时间
    private Date openEndTime;

    // 价格(区间值最小值)
    private String price;

    // 库存(累计库存总和)
    private Long stock;

    // 实际库存（累计库存 - 累计销量）
    private Long realStock;

    // 页面不显示剩余件数
    private boolean showStock;

    // 邮费
    private Double postage;

    // 商品编码
    private String number;

    //类型 1 普通商品  2 积分商品  3 普通+积分
    private Integer type;

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPic() {
        return pic;
    }

    public void setPic(String pic) {
        this.pic = pic;
    }

    public String getBrandId() {
        return brandId;
    }

    public void setBrandId(String brandId) {
        this.brandId = brandId;
    }

    public Long getSalesNum() {
        return salesNum;
    }

    public void setSalesNum(Long salesNum) {
        this.salesNum = salesNum;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getOriginalPrice() {
        return originalPrice;
    }

    public void setOriginalPrice(String originalPrice) {
        this.originalPrice = originalPrice;
    }

    public Date getOpenStartTime() {
        return openStartTime;
    }

    public void setOpenStartTime(Date openStartTime) {
        this.openStartTime = openStartTime;
    }

    public Date getOpenEndTime() {
        return openEndTime;
    }

    public void setOpenEndTime(Date openEndTime) {
        this.openEndTime = openEndTime;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public Long getStock() {
        return stock;
    }

    public void setStock(Long stock) {
        this.stock = stock;
    }

    public boolean isShowStock() {
        return showStock;
    }

    public void setShowStock(boolean showStock) {
        this.showStock = showStock;
    }

    public Long getRealStock() {
        return realStock;
    }

    public void setRealStock(Long realStock) {
        this.realStock = realStock;
    }

    public Double getPostage() {
        return postage;
    }

    public void setPostage(Double postage) {
        this.postage = postage;
    }

    public String getCostPrice() {
        return costPrice;
    }

    public void setCostPrice(String costPrice) {
        this.costPrice = costPrice;
    }

    public String getTradePrice() {
        return tradePrice;
    }

    public void setTradePrice(String tradePrice) {
        this.tradePrice = tradePrice;
    }

    public String getNumber() {
        return number;
    }

    public void setNumber(String number) {
        this.number = number;
    }
}
